package com.sinosoft.perfect.system._display.dao;

import java.sql.SQLException;
import java.util.List;

import com.sinosoft.perfect.common.system.BaseSqlSessionDaoSupport;
import com.sinosoft.perfect.system._.po.TDisplay;
import com.sinosoft.perfect.system._display.MapperSystemDisplay;

public class DisplayDAOImpl extends BaseSqlSessionDaoSupport implements IDisplayDAO {

	private MapperSystemDisplay getMapperSystemDisplay() {
		return getSqlSession().getMapper(MapperSystemDisplay.class);
	}

	@Override
	public int deleteTDisplayByPK(TDisplay tdisplay) throws SQLException {
		return getMapperSystemDisplay().deleteTDisplayByPK(tdisplay);
	}

	@Override
	public Object insertByTDisplay(TDisplay tdisplay) throws SQLException {
		return getMapperSystemDisplay().insertByTDisplay(tdisplay);
	}

	@Override
	public int updateTDisplayByPK(TDisplay tdisplay) throws SQLException {
		return getMapperSystemDisplay().updateTDisplayByPK(tdisplay);
	}

	@Override
	public List<TDisplay> selectByTDisplay(TDisplay tdisplay) throws SQLException {
		return getMapperSystemDisplay().selectByTDisplay(tdisplay);
	}

}
